package ai.zixing.mashibing.basic_class.class10;

/**
 * 边描述
 * 无向图可以理解为双向有向图
 */
public class Edge {
    // 权重
    public int weight;
    // 起点
    public Node from;
    // 终点
    public Node to;

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
